package com.ruoyi.store.service.impl;

import java.util.List;

import com.ruoyi.store.mapper.SettlementAccountMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.store.domain.SettlementAccount;
import com.ruoyi.store.service.ISettlementAccountService;

/**
 * 【请填写功能名称】Service业务层处理
 * 
 * @author kai
 * @date 2022-08-23
 */
@Service
public class SettlementAccountServiceImpl implements ISettlementAccountService 
{
    @Autowired
    private SettlementAccountMapper settlementAccountMapper;

    /**
     * 查询【请填写功能名称】
     * 
     * @param id 【请填写功能名称】主键
     * @return 【请填写功能名称】
     */
    @Override
    public SettlementAccount selectSettlementAccountById(Long id)
    {
        return settlementAccountMapper.selectSettlementAccountById(id);
    }

    /**
     * 查询【请填写功能名称】列表
     * 
     * @param settlementAccount 【请填写功能名称】
     * @return 【请填写功能名称】
     */
    @Override
    public List<SettlementAccount> selectSettlementAccountList(SettlementAccount settlementAccount)
    {
        return settlementAccountMapper.selectSettlementAccountList(settlementAccount);
    }

    /**
     * 新增【请填写功能名称】
     * 
     * @param settlementAccount 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int insertSettlementAccount(SettlementAccount settlementAccount)
    {
        return settlementAccountMapper.insertSettlementAccount(settlementAccount);
    }

    /**
     * 修改【请填写功能名称】
     * 
     * @param settlementAccount 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int updateSettlementAccount(SettlementAccount settlementAccount)
    {
        return settlementAccountMapper.updateSettlementAccount(settlementAccount);
    }

    /**
     * 批量删除【请填写功能名称】
     * 
     * @param ids 需要删除的【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteSettlementAccountByIds(Long[] ids)
    {
        return settlementAccountMapper.deleteSettlementAccountByIds(ids);
    }

    /**
     * 删除【请填写功能名称】信息
     * 
     * @param id 【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteSettlementAccountById(Long id)
    {
        return settlementAccountMapper.deleteSettlementAccountById(id);
    }
}
